import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/hazard_curve_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/hazard_curve_entity.g.dart';

@JsonSerializable()
class HazardCurveEntity {
	HazardCurveEntity();

	factory HazardCurveEntity.fromJson(Map<String, dynamic> json) => $HazardCurveEntityFromJson(json);
	String? lastCollectTime = '';
	double? lastValue = 0;
	String? targetCode = '';
	String? targetStatus = '';
	String? targetTypeDicId = '';
	String? targetTypeDicName = '';
	String? unit = '';

	Map<String, dynamic> toJson() => $HazardCurveEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
